package com.flyme.module.base.provider.service;

import com.flyme.core.base.supper.entity.EntityMap;
import com.flyme.core.base.supper.service.IBaseService;
import com.flyme.module.base.client.entity.SysCertificate;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;

public interface SysCertificateService extends IBaseService<SysCertificate> {

    /**
     * 更新线下课程
     *
     * @return
     */
    Boolean edit(SysCertificate SysCertificate);

    /**
     * 查询所有的平台证书
     * @return
     */
    EntityMap selectList();

    /**
     * 根据证书code查询证书
     */
    SysCertificate findByCode(String certificateCode);


    /**
     * 根据证书code统计可兑换分数
     */
    String countScoreByCode(String certificateCode);


}
